package com.cmbc.practice;

public class PersonFactory2 {
	private static Person persopn;
	public  Person getPerson(String nationality){
		if("chinese".equalsIgnoreCase(nationality)) {
			persopn=new Chinese("chinese");
		}else if("american".equalsIgnoreCase(nationality)) {
			persopn=new American("american");
		}
		return persopn;
	}
}
